<?include($this->rootDir.'/views/signature/public.phtml');?>
<div class="content-l">
		     <div class="mood-all-content">
		       <form id='add_state' name='add_state' action='' method="post" onsubmit="return states.add_state(this.id)">
			 	  <div class="mood-mytype">
					  <div class="mood-mytype-l">						 
							<i:avatar xmlns:i="178"  uid="<?=$this->uid?>" size="50"   addlink="true" link="" />			
					  </div><!--mood-mytype-l-->
					  <div class="mood-mytype-text">
						   <div class="mood-text-top">
								<span id='zishu' class="mood-number"></span>
								<span class="f-14px">我的心情</span>
						   </div><!--mood-text-top-->
						   <div class="mood-text-mr">
								  <div class="write-mood">					
					 <input id="state" name="state"  type="text" class="mood-input" onkeyup="states.countTextShow('state','zishu');"   onfocus="states.onfocus_signature_text(state)" onblur="states.onblur_signature_text(state)" value="我正在做什么。。。" />
					 <input id='smile_tage' type='hidden' name='feel' value=""	/>
					 <i:button xmlns:i="178" id="btn1" label ='提交' type="button" style="yes" btype="submit" /></i:button>
					<span id="state_button" class="face-icon"></span>
					<div class="clearfix">&nbsp;</div>
				</div><!--write-mood-->
						<script>
								var panel1 = new SmilePane2('panel1', 'state_button', echo);
								function echo(s){
									var face = '[s:'+s+']';
									comments.state_face(s,face);
								}
						</script>
						<script>
						$('state_button').observe('click', panel1.show.bindAsEventListener(panel1, {left:0, top:-10}));
						</script>    
						   </div>
					  </div><!--mood-mytype-text-->
					 
				 </div><!--mood-mytype-->
				 </form>
				 
	<?if($this->data):?>
	<?foreach ($this->data as $state): ?>
	<? if($state['feel'] || $state['state']): ?>
				 <div class="mood-content">
					  <div class="mood-content-title">
					   <span class="mood-title-right"><a href="#" onclick="return states.remove_state(<?= $state['id']?>)">删除</a></span>
						   <span class="c-747474">发表于：</span><?= Util::formatTime($state['create_time'])?>			
					  </div><!--mood-title-->
					  <div class="mood-content-mr">						   <?=preg_replace($_SERVER['config']['smile2']['searcharray'],$_SERVER['config']['smile2']['replacearray'],$state['feel']).$state['state'] ?>
					  </div><!--mood-content-mr-->
					  <div class="mood-content-under">
					  
<!--					<a href="#">评论(<span class="c-9e2224">0</span>)</a>-->
					<a href="javascript:comments.app_comment('comment','signature','state_show',<?= $state['id']?>,'<?= $state['uid']?>','<?=comment_util_comment::makeTheCode('comment','signature','state_show',$state['id'])?>')">
					评论(<span class="c-9e2224"><?= comment_util_comment::getCommentCount('comment','signature','state_show',$state['id'])?></span>)</a>
					</div><!--mood-content-under-->
					<div id='comment_signature_state_show_<?= $state['id']?>' class="comment" > </div>
				 </div><!--mood-content-->
	<?endif?>
	<?endforeach;?>
	<?endif?>
			 </div><!--mood-all-content-->
	<?if($this->data):?>
			 <div class="mood-pagination">
					<?= $this->pageinfo; ?>
			</div><!--mood-pagination-->
	<?endif?>
		</div><!--content-l -->
		<div class="content-r">			

		</div><!--content-r -->

